package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.drink.DrinkUserData;
import com.yanqu.road.entity.activity.drink.config.DrinkBlockConfig;
import com.yanqu.road.entity.activity.drink.config.DrinkOrderConfig;
import com.yanqu.road.entity.activity.drink.config.DrinkScoreConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class DrinkActivityBusiness {

    public static Map<Integer, DrinkBlockConfig> getDrinkBlockConfigMap(int activityId) {
        return DaoHelper.getDrinkBlockConfigDaoImpl().getDrinkBlockConfigMap(activityId);
    }

    public static Map<Integer, DrinkOrderConfig> getDrinkOrderConfigMap(int activityId) {
        return DaoHelper.getDrinkOrderConfigDaoImpl().getDrinkOrderConfigMap(activityId);
    }

    public static Map<Integer, DrinkScoreConfig> getDrinkScoreConfigMap(int activityId) {
        return DaoHelper.getDrinkScoreConfigDaoImpl().getDrinkScoreConfigMap(activityId);
    }

    // 用户数据

    public static DrinkUserData getDrinkUserData(int activityId, long userId) {
        return DaoHelper.getDrinkUserDataDaoImpl().getDrinkUserData(activityId, userId);
    }

    public static boolean addDrinkUserData(DrinkUserData userData) {
        return DaoHelper.getDrinkUserDataDaoImpl().add(userData);
    }

    public static boolean updateDrinkUserData(DrinkUserData userData) {
        return DaoHelper.getDrinkUserDataDaoImpl().update(userData);
    }

}
